package model

import "gorm.io/gorm"

type Room struct {
	gorm.Model
	Name     string `json:"name"`
	ParentID int    `json:"parent_id"`
	Children []Room `gorm:"foreignKey:ParentID" json:"children"`
}

func (Room) TableName() string {
	return "room"
}
